/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package beans;

import core.School;
import java.util.ArrayList;
import java.util.Collection;

/**
 *
 * @author Anton
 */

public class MainBean
{
    private Collection<School> schools;

    /** Creates a new instance of MainBean */
    public MainBean() 
    {
        schools = new ArrayList<School>();
    }

    public Collection<School> getSchools()
    {
        return schools;
    }

    public void setSchools(Collection<School> schools)
    {
        this.schools = schools;
    }

    public boolean addSchool(School school)
    {
        return schools.add(school);
    }

    public boolean removeSchool(School school)
    {
        return schools.remove(school);
    }
}
